package com.foreknow.demo7;

import java.util.List;

/**
 * @author shkstart
 * @create 2021-07-27 15:28
 */
public interface EmployeeDao {

    /**
     *向数组添加员工
     * @param employee
     */
    public void  add(Employee employee);

    /**
     * 查询所有的员工信息
     * @return
     */
    public List<Employee> searchAll();

    /**
     * 修改某一员工的信息
     * @param employee
     * @return
     */
    public Employee upDate(Employee employee);

    /**
     * 根据id查询某一个员工
     * @param id
     * @return
     */
    public Employee search(String id);
}
